// 登录接口需要携带参数ts类型
export interface LoginFormData {
  jobNumber: string
  password: string
}

export interface RegisterFormData {
  jobNumber: string
  userName: string
  password: string
  repassword?: string
}
export interface ResponseData {
  code?: number
  message?: string
  ok?: boolean
}
interface dataType {
  token: string
  message?: string
}

export interface LoginResponseData {
  code: number
  data: dataType
}

export interface userInfoResponseData extends ResponseData {
  data: {
    id: number
    jobNumber: string
    userName: string
    token: string
    avatar: string
    permissionList: string[]
    permissionValueList: string[]
    routerList: string[]
  }
}
